package com.lovo.config;

import com.lovo.bean.Student;
import org.springframework.context.annotation.*;

@Configuration
@ComponentScan(basePackages = "com.lovo")
@PropertySource("classpath:db.properties")
@EnableAspectJAutoProxy
public class MyApplicationConfig {
    @Bean
    public Student student(){
        return new Student("张飞","男",30);
    }
}
